package com.z.pojo;

import java.sql.Date;
import java.sql.Timestamp;


public class Order {
    private String oid;
    private Integer uid;
    private Integer gid;
    /**
     * 购买商品数量
     */
    private Integer gnum;
    /**
     * 订单状态
     */
    private String state;
    /**
     * 订单总价
     */
    private Double sprice;
    /**
     * 订单创建时间
     */
    private String otime;

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getGnum() {
        return gnum;
    }

    public void setGnum(Integer gnum) {
        this.gnum = gnum;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Double getSprice() {
        return sprice;
    }

    public void setSprice(Double sprice) {
        this.sprice = sprice;
    }

    public String getOtime() {
        return otime;
    }

    public void setOtime(String otime) {
        this.otime = otime;
    }

    public Order() {
    }

    public Order(String oid, Integer uid, Integer gid, Integer gnum, String state, Double sprice, String otime) {
        this.oid = oid;
        this.uid = uid;
        this.gid = gid;
        this.gnum = gnum;
        this.state = state;
        this.sprice = sprice;
        this.otime = otime;
    }

    @Override
    public String toString() {
        return "Order{" +
                "oid=" + oid +
                ", uid=" + uid +
                ", gid=" + gid +
                ", gnum=" + gnum +
                ", state='" + state + '\'' +
                ", sprice=" + sprice +
                ", otime=" + otime +
                '}';
    }
}
